/*
 * OLED_DMA.h
 *
 *  Created on: Aug 9, 2021
 *      Author: lihao
 */

#ifndef __OLED_H
#define __OLED_H

#include "stdlib.h"

#include "main.h"

//extern I2C_HandleTypeDef hi2c1;
//OLED控制用函数
void WriteCmd(void);


void OLED_Init(void);
void OLED_Clear(void);

void OLED_ShowNum(uint8_t x,uint8_t y,unsigned int num,uint8_t len,uint8_t size2);//显示2个数字
void OLED_ShowChar(uint8_t x,uint8_t y,uint8_t chr,uint8_t Char_Size,uint8_t Is_Reverse);
void OLED_ShowString(uint8_t x,uint8_t y,uint8_t *chr,uint8_t Char_Size);//显示一个字符号串
void OLED_ShowCHinese(uint8_t x,uint8_t y,uint8_t no);//显示汉字
void OLED_Refreash(void);
#endif




